import request from "@/utils/request";

// 查询app版本
export function listVersion() {
  return request({
    url: "/app/versionUpdate/list",
    method: "get",
  });
}

//更新app
 export function updateVersion(data) {
  return request({
    url: "/app/versionUpdate",
    method: "put",
    data: data,
  });
}

//文件上传
export function uploadFile(data) {
  return request({
    url: "/common/uploads",
    method: "post",
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    timeout:1000*60,
    data,
  });
}
